package com.star.batchhandler.demo;


public class Command {
	/**
	 * update sql
	 */
	private String sql;
	
	private Object[] params;
	
	private int[] types;
	
	private int index;
	
	public Command(String sql,int[] types,Object[] params) {
		this.sql = sql;
		this.params = params;
		this.types = types;
	}
	
	public Command(String sql) {
		this.sql = sql;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public Object[] getParams() {
		return params;
	}

	public void setParams(Object[] params) {
		this.params = params;
	}

	public int[] getTypes() {
		return types;
	}

	public void setTypes(int[] types) {
		this.types = types;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}
	
	@Override
	public String toString() {
		return "cmd:"+sql;
	}
}
